#!/usr/bin/ruby -d

require 'tsmtpd'
require 'tschedul'


tsch = TaskScheduler.new
ptsch = fork do
  loop do
    tsch.send_all_reminders
    sleep 150
  end
end

Process.detach(ptsch)

smtpd = SMTPServer.new(1234)
smtpd.start
smtpd.join

